<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
		<title>代码生成配置页面</title>
		<link rel="icon" href="assets/img/lcxm.ico" type="image/ico">
		<script type="text/javascript" src="../../commonFragment/header.js"></script>
		<script type="text/javascript" src="../../commonFragment/nojs.header.js"></script>
		<script>
			$(function(){
				var $form = $("form");
				$form.attr("action", base_url + "/generator/exportByConfig");
			});
		</script>
	</head>
	<body>
		<div class="container-fluid p-t-15">
			<div class="row">
				<div class="col-lg-12">
					<div class="card">
						<div class="card-body">
							<form class="form-horizontal validate" role="form vue-form" method="post" action="/generator/export"
							 data-form-url="/generator/table/detail">
								<div class="form-group hide">
									<label for="tableName" class="col-sm-2 control-label">隐藏的*</label>
									<div class="col-sm-6 ">
										<input type="text" id="tableName" name="tableName" :value="tableName" />
									</div>
									<div class="col-sm-4  help-inline form-control-static"></div>
								</div>
								<div class="form-group">
									<label for="packageName" class="col-sm-2 control-label">主包</label>
									<div class="col-sm-10 ">
										<input type="text" class="form-control" id="packageName" value="pers.vic.boot.console" name="packageName"
										 autocomplete="off" />
									</div>
								</div>
								<div class="form-group">
									<label for="moduleName" class="col-sm-2 control-label">模块</label>
									<div class="col-sm-10 ">
										<input type="text" class="form-control" id="moduleName" value="system" name="moduleName" autocomplete="off" />
									</div>
								</div>
								<div class="form-group">
									<label for="parentId" class="col-sm-2 control-label">选择列表字段</label>
									<div class="col-sm-10 ">
										<table class="table table-striped table-bordered table-hover ">
											<thead>
												<tr class="text-center">
													<th><input type="checkbox" data-member="ids"></th>
													<th>字段名</th>
													<th>属性名</th>
													<th>属性类型</th>
													<th>字段备注</th>
													<th>查询方式</th>
												</tr>
											</thead>
											<tbody align="center">
												<tr v-for="(column, index) in columns"  v-if="!column.entityIgnore">
													<td class="center">
														<input type="checkbox" value="true" data-leader="ids" :name="'columns['+index+'].show'" />
														<input type="hidden" :value="column.columnName"  :name="'columns['+index+'].columnName'" />
													</td>	
													<td>{{column.columnName }}</td>
													<td>{{column.attrname }}</td>
													<td>{{column.attrType }}</td>
													<td>{{column.comments }} </td>

													<td>
														<select v-if="column.attrType=='String'" class="selectpicker" :name="'columns['+index+'].condition'">
															<option value="0"  >等于</option>
															<option value="1" selected="selected" >like</option>
														</select>
														<select v-else class="selectpicker" :name="'columns['+index+'].condition'" >
															<option value="0"  selected="selected">等于</option>
															<option value="1" >like</option>
														</select>
													</td>
												</tr>
											</tbody>
										</table>
									</div>
								</div>

								<div class="form-group clearfix">
									<div class="col-sm-offset-3 col-sm-9">
										<button type="submit" class="btn btn-primary ">
											<i class="glyphicon glyphicon-ok"></i> 生成代码
										</button>
										<button type="button" class="btn btn-info action-close-tab">
											<i class="glyphicon glyphicon-repeat"></i> 返回
										</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
